do a little initialisation dance for postgresql