Hartl demo application tutorial modified to work with postgres