changed type parameter of CursorIterator to extend QueryResult instead of Model