Change all the use of db.php and $db to pdo.php and $pdo