title: Construction of 5 level tree structure in python
body: <p>i want to reduce the number of times i hit the data base to retrieve data. So i think taking entire data into a tree will increase the performance of the system as i will not be hitting the database frequently.</p>
  
  <p>I am a beginner in python, so please do help and advice me in creating the tree structure.</p>