Creating a Virtual Hierarchy From a Relational Database