Using the rules table, a tree is built out of the left/right ids, so nested sets/categories are created with that.