def METHOD_NAME(self, uri: str, db_name: str):
    """Replace the database name in the given ``uri`` with the given ``db_name``"""
    from sqlalchemy.engine.url import make_url
    url = make_url(uri)
    url = url._replace(database=db_name)
    return str(url)