settings to db