temporary attempt to use GQL. Might just use the ORM code instead.
got things working again with ndb