Add settings class to access the settings table in the database Cache values and improve database writes. Options dialog simplified Replace getSetting / storeSetting Unpack option flags to rows in the settings