move settings to db