Sanitize names in db, performance enhancement