[sql] Delete sql rows where IDs do not have a match from another table