use python sql connector
merge some changes
 back to python 2
added pyhton2