clearDB fixed