migrate sql3 2 pg