fixed sql connection bug
Merge pull request #9 from AndyYou/master

fixed sql connection bug