You can use Ron Carnell's utilities (in the db) since you are still using v5 and they work superb for things like this... make sure it's the newest version (~200kb). It should be there, if not, lemme know and I have a copy at work.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.