clear DB when record >1M