move alter table ndb into a resource