Switch some ndb calls to use get_by_id() instead of a query