postgresql migration part2