Tree data structure for handling tree data from databases.