Edit viewTopic to use PDO