Changed from using gae datastore to using gae ndb