I imagine that all messages from all forums are in one table in the database and then linked to the proper forum, with forums stored in another table sort of thing. Just thinking from a relational database standpoint. It is not like there's a table/file per forum, in other words.