clearDB moved