Fix db configuration