chapter 5: added DB population script and fixed errors in the Page model