Added part2 function 2, 4, 6, Modified some of a2sql