sql delete row if not exists in another table