Prefer db functions over client queries? - Supabase