on page 268, the code for calling the getConnection method of the Database class is:
$connection = Database::getConnection;
This doesn't work. However, this does:
$connection = Database::getConnection();
The method needs to be invoked to return the correct object. Just leaving this here for future editions, or for anyone else who runs into the same thing.