fixed mysql connection check
Merge pull request #6 from TheCutter/master

fixed mysql connection check