Migrated two methods from Tree to TSDB and TsdbStore Classes.

Just the start more to come. No need to merge yet.