RLS and trigger functions - Supabase