def METHOD_NAME(database: dict, db_id: int):
    title = fake.sentence(random.randint(1, 15)).rstrip(".")
    if random.randint(1, 100) < 80:
        user = random.choice(database["user"])
        starter_id = user["id"]
        starter_name = user["handle"]
    else:
        starter_id = None
        starter_name = fake.user_name()
    if random.randint(1, 100) < 80:
        user = random.choice(database["user"])
        last_poster_id = user["id"]
        last_poster_name = user["handle"]
    else:
        last_poster_id = None
        last_poster_name = fake.user_name()
    database["thread"].append(
        {
            "id": db_id,
            "category_id": random.choice(database["category"])["id"],
            "title": title,
            "slug": slugify(title),
            "starter_id": starter_id,
            "starter_name": starter_name,
            "started_at": datetime.now().isoformat(),
            "last_poster_id": last_poster_id,
            "last_poster_name": last_poster_name,
            "last_posted_at": datetime.now().isoformat(),
            "is_closed": random.randint(1, 100) > 80,
            "is_hidden": random.randint(1, 100) > 90,
        }
    )