Set PDO fetch mode when setting up database.