pg version of ch 03 rails tutorial