using __getattr__ on client to execute in cursor
added optional hql to fetch and iter