Added exception to the treeStructureChanged event, if the tree is reloaded from the database.
Added options for loading a database.