Failed to run SQL Query, what is wrong with my function? - Supabase