Fix db settings