in reply to Tree Structure and Db

You may look at the following sources: