fix list of iterators stored on db and clean up on db close