Chapter 5 and PostgreSQl migration