fix postgres helper class