Just a thought but why don't you try using DBI with the DBD-ODBC driver? You will be able to get more support from us Monks and learning to use DBI will pave the way for a whole range of databases rather than just those using ODBC.
There is more than one way to do it!