CHANGES TO DO : 1. For each list, we want to point to the owner.
2. For each attribute, insert into the useage table
3. Insert into base node table for each node that is put in a derived table. 3.1 base_node contains id and type 3.2 derived node the same data.
Just Double Book them...... we can use inheritance if the db supports it. 3.3 Or we can make on big fat base table that has all of the fields. That way we can get all the data with one fetch. 3.4 We can encode the table name into the id, so that we can choose the right table. and use the base table to find the basic data. 3.5 we can store the entire node as a single xml string that has to be parsed.
4. For each node, find the closest decl