On the forum I coded there is one query for the session itself, one query for getting the page content (topic list or topic content), one for updating the session and one for updating the list of topics seen/unseen. Depending on the database structure of vbulletin there could be more update/insert queries, but that should be it.