2
You could go to include/common.php and insert a line to include a custom header file (just to make it easier to upgrade)
In that custom header file, you can then make the connection to the 2nd database, which will then be available like $xoopsDB is.