How to fix Object in use in PostgreSQL | DevErrors