Refining postgres schema solution.