Included assertions to be sure that we don't have junk in `NodePath`
Had forgotten `db.nest` for `node` (and `leaf`) creation; plus `db.session.add (NodePath (node))` *should* have worked, but did not; direct SQL function did the trick tough (although slightly less efficient than `NodePath (node)`)