class to clean the database. Added funtion to detect similar names