triggers and functions behave like transactions? - Supabase