Can I subclass the HTTPRequestThread for HandleSpecialURL?

I essentially have bunch of my libraries and helper methods know how to access the correct db regardless of where I call the method from. It knows to grab it from the session or thread when needed.

dim s as Session = Session
if s <> nil then
  return Session.db
elseif app.CurrentThread isa AppTaskThread then
  return AppTaskThread(app.CurrentThread).db
  return GetNewDBCommissions

I essentially want to be able to add a db(database) property to the HTTPRequestThread like I can the App, Session, and CustomThreads so that the code can share a consistent db connection for the life of that thread. Is this possible?