reset the db iterator before traversal