Added PDO code to Book class