Fix mysql bugs
Merge pull request #9 from ralmn/develop

V1.1.7