Updating the tree
Adding database