finish up transition to ndb, now is able to delete and summarize stages