Manually update gateway plugin

CENTOS 5 (Asterisk BOX)
mysql 5.0.22
Loaded the RPM version Openfire 3.4.2
3 plugins loaded Asterisk IM 1.4, IM gateway 1.2.1, and search 1.4.1

I could not find the steps needed anywhere. Sorry if I missed them.

Get this in my logs after placing the newer gateway jar file in plugins directory:

2007.12.20 11:59:00
org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java: 418)
gateway - Database update failed. Please manually upgrade your database.

I also see this within my INFO log:

2007.12.20 11:59:00 Found old database version 5 for gateway. Upgrading to version 6…
2007.12.20 11:59:00 Starting transport service: icq
2007.12.20 11:59:01 Starting transport service: msn

I will assume the plugin is unable to upgrade some tables automagicly. HOW CAN I DO THIS MYSELF?

Also, my CPU utilization is at 100% all the time (When Openfire is running) I asume this may have something to do with it. running TOP and sorting by CPU I can see the user DAEMON running JAVA is taking all my CPU time. Could be related or a seperate issue. IDEAS?

P.S. Also when inside the management website I click on the Asterisk-IM tab and nothing happens. The page never loads

This may or maynot be related to the database issue/