How to fix Cannot insert multiple commands into prepared statement in PostgreSQL | DevErrors