use slices instead of channels in sortSections()
reorganized the updater stuff and added some comments
read database configuration from settings