A very crude postgres helper module