How to fix Too many rows in PostgreSQL | DevErrors