OT and completely beyond the scope
You should be using nested set trees for your tree structured data. That's how IWeThey does it, and I've followed the links Scott posted back when he wroted it to implement some stuff recently.
===
Implicitly condoning stupidity since 2001.