added ndb and update table creation