Refines mongo configuration with mongo username and password.