Do you have the old functions file? If so, just replace this line below:
PHP Code:
$dsn = "mysql:host={$dbhost};dbname={$dbname}";
$adopts = new PDO($dsn, $dbuser, $dbpass);
with the following codes:
PHP Code:
$adopts = new Database($dbname, $dbhost, $dbuser, $dbpass, $prefix);