Tools for editing tree structures using a relational model