Added alternate query method (chunkedQuery) to return a generator

Allows future deprecation (or rather, replacement) of the query method in exchange for a more robust version (with a different return type).