ndb to db converter