in reply to Connecting to database

You want to take a look at the Win32::ODBC module for ODBC access and together maybe the DBI:: modules for more "native" access to the respective databases. A short search for "ODBC" on search.cpan.org resulted also in DBD::ODBC (you will also need DBI for that one)