Changed key query to return an iterator and made strings unique
Fixed skipping rows
Fixed export to not use cache
Merge branch 'fix/key_index'