Added iterator for query results. Builtin swig option not working yet