sync the tree when change on structure
Merge pull request #74 from christophe-g/directory

sync the tree when change on db structure