finish chapter 5

postgre transition complete