Treee Rule refractor

Moved all reference of the database from the class TreeRule. It now resided inside of TSDB. HBase interaction is now done in the HBaseStore