fix db setting error