Remove code list items from db when deleting code list