format db credentials