Update chapter 12 with DB fixes