How to fix Duplicate prepared statement in PostgreSQL | DevErrors