cleaned up the database