now deleting unmatched elements in db after resuming.