So I put the book code out on github. As nice as it is that Pragmatic makes all book code available in a zip file for download, I’m the type of person who will never actually bother to download it. But I’ll fork a project in an instant…
https://github.com/sevenweeks/databases
Feel free to fork and pull request any bugs you might encounter.