fixed huge bug in dbiterator that caused an inappropriate number of results to appear