How to fix Active SQL transaction in PostgreSQL | DevErrors