clean up the database