def METHOD_NAME(cls, database_url: str, values: dict) -> str:
    if not database_url:
        home_path = values.get("home_path")
        sqlite_file = os.path.join(home_path, "argilla.db")
        return f"sqlite+aiosqlite:///{sqlite_file}?check_same_thread=False"
    if "sqlite" in database_url:
        regex = re.compile(r"sqlite(?!\+aiosqlite)")
        if regex.match(database_url):
            warnings.warn(
                "From version 1.14.0, Argilla will use `aiosqlite` as default SQLite driver. The protocol in the"
                " provided database URL has been automatically replaced from `sqlite` to `sqlite+aiosqlite`."
                " Please, update your database URL to use `sqlite+aiosqlite` protocol."
            )
            return re.sub(regex, "sqlite+aiosqlite", database_url)
    if "postgresql" in database_url:
        regex = re.compile(r"postgresql(?!\+asyncpg)(\+psycopg2)?")
        if regex.match(database_url):
            warnings.warn(
                "From version 1.14.0, Argilla will use `asyncpg` as default PostgreSQL driver. The protocol in the"
                " provided database URL has been automatically replaced from `postgresql` to `postgresql+asyncpg`."
                " Please, update your database URL to use `postgresql+asyncpg` protocol."
            )
            return re.sub(regex, "postgresql+asyncpg", database_url)
    return database_url