Syntax error in postgress functions - Supabase