fixed postgres schema