How to fix Transaction integrity constraint violation in PostgreSQL | DevErrors