One of the main problems with using a relational database such as MySQL is that it can be tricky to store and retrieve hierarchical information.