pub async fn insert_thread( pool: &DbPool, thread: &Thread, ) -> Result<i64, StorageError>
Insert a new thread record. Returns the auto-generated ID.