fix db setting