Used cursor for getting ndb entities from datastore.