For Table TreeNodes
Added index treeNodeTypeID for potential join to TreeNodeTypes table
Added index treeID for potential join to trees table
Added index inheritPermissionsFromTreeNodeID for query where clause and potential join to treeNodeID