Help with a trigger + function - Supabase