simplify harvest_clear queries so they do not lock on big db