fix db configuration