Make the import process more managable

A new QueryIterator class helps with iterating over a Query objects rows
in index_entity.
Make db_session more manageable

by removing its debug argument, setting that instead in __main__ if
--debug is passed.
Load rows even if importlimit = 0