async def METHOD_NAME(
    user_id: int,
    character_id: int,
    image_url: str,
    nickname: str,
    pool: asyncpg.Pool,
) -> None:
    await pool.execute(
        """
            UPDATE
                custom_image
            SET
                current = false
            WHERE
                user_id = $1 AND character_id = $2
            """,
        user_id,
        character_id,
    )
    await pool.execute(
        """
        INSERT INTO
            custom_image (user_id, character_id, image_url, nickname, current)
        VALUES
            ($1, $2, $3, $4, true)
        """,
        user_id,
        character_id,
        image_url,
        nickname,
    )