Fix db connection settings