Update database connections to use PDO