Adding detach methods to tree and nodes for prep for database interaction.