Generate correct connection string when srv is defined, including `authDb` Default `authDb` to `admin` if not set