notes about the book code- some of it in dao layer