tutorial exercise 3.5.3 - switched to pgsql