Inject database name into connection spec for later logging.