ignore duplicate triple inserts in Postgres so the transaction is not aborted