Class for managing DB Tree