How to get current user analytics based on 3 tables - Supabase