clean the database