async def METHOD_NAME(
    id: int,
    name: Optional[str] = None,
    tag: Optional[str] = None,
    owner: Optional[int] = None,
) -> Optional[dict[str, Any]]:
    """Update a clan in the database."""
    query = """\
        UPDATE clans
           SET name = :name,
               tag = :tag,
               owner = :owner
         WHERE id = :id
    """
    params = {
        "id": id,
        "name": name,
        "tag": tag,
        "owner": owner,
    }
    await app.state.services.database.execute(query, params)
    query = f"""\
        SELECT {READ_PARAMS}
          FROM clans
         WHERE id = :id
    """
    params = {
        "id": id,
    }
    rec = await app.state.services.database.fetch_one(query, params)
    return dict(rec) if rec is not None else None