How to fix PL/pgSQL error in PostgreSQL | DevErrors