Saves a tree in a table, is fast and can sort in preorder at DB level.