Migrate to using settings binary rather than sql queries against settings.db.