Cleaning the database implemented