restruct the DBTree class