How to fix Canceling statement due to lock timeout in PostgreSQL | DevErrors