do a little initialisation dance for postgresql
Merge pull request #3 from wwaites/master

do a little initialisation dance for postgresql