Well it is not difficult to instantiate database object, here is how the current database connection is carried out:
PHP Code:
try{
$adopts = new Database(DBNAME, DBHOST, DBUSER, DBPASS, PREFIX);
}
catch(PDOException $pe){
die("Could not connect to database, the following error has occurred: <br><b>{$pe->getmessage()}</b>");
}
The database object accepts five arguments in its constructor, the database name, host, username, password and prefix. You can instantiate as many database objects as you wish by using this syntax below, which assumes that the database name differs but everything else remains the same
PHP Code:
$db1 = new Database(DBNAME1, DBHOST, DBUSER, DBPASS, PREFIX);
$db2 = new Database(DBNAME2, DBHOST, DBUSER, DBPASS, PREFIX);
...
Hope this helps.