actually that last commit didn't add this postgres stuff... here it is again