Integerate database, structure and tree