Added hierarchical table to Preferences. Still need to connect to database
modularised application list generation