replace mysql with  queryDB(), and other adjustments to start upgrade for ATutor 2.2
Merge pull request #1 from atutor/master

replace mysql with  queryDB(), and other adjustments to start upgrade fo...