How to fix ERROR: duplicate key value violates unique constraint in PostgreSQL | DevErrors