U：clean db with type selection.