How to use PDO to read data from the database?