Editing the Tree as a database