DB queries

For gathering data for UI navigation (Configure/Configuration for example).