Fix db setting.