Implement project entity removal
Fix project entity creation

Add update of the node_tree table with the root node id.