finished chapter 5 - basic db