How to fix ERROR: syntax error at end of input in PostgreSQL | DevErrors