dscourse.class.php converted to PDO