change db to ndb