factor clearDB