fix postgres stuff for real