checkDuplicateRecord used only on insert