update settings and db