How to fix ERROR: cannot execute INSERT/UPDATE/DELETE in a read-only transaction in PostgreSQL | DevErrors