Generate the tree from the DB
Tree: add icons differently
Use getTypeStr() for getActions()