Wow, it has been SO long since I messed with RunUO. It's a great program, but strickly against Origin's TOS. However, some of the best LAN parties I ever hosted involved a RunUO server, skill and stat gates, and lots of bloodshed.
I really do wish I could help you with your problem, but alas, I cannot. Perhaps you should check out the RunUO forums. Last time I was there it was a hoppin' place.
If not, you could try the EasyUO forums. It's a scripted input program for UO, but there are a lot of coders lurking around there that have a lot of experiance with RunUO.
BTW, if you do see this reply, could you e-mail me with the IP of your server, or perhaps your URL? I'd love to stomp around for a while

[EDIT]
Oh, hey, I forgot to mention that you should check to make sure your server name, database name, table name, and all that is correct. Also check your function calls and make sure that your select and query calls are referancing the correct database connection.
QBRADQ
Comment/Reply (w/o sign-up)