replace entities for duplicate integrityerror