delete records based on the URN before inserting new ones