fixed migration the settings to DB