fixed #45 mysql insert/update fix
Merge pull request #46 from cnmicha/45

fixed #45 mysql insert/update fix