added cleaning the database