move settings to sqlite