Added hierarchical table to Preferences. Still need to connect to database