Simplified session.executeQuery to use a pointer to Iter instead of creating a new object.