[fix] fixes to work with mysql
Merge pull request #184 from tkrille/fixes-for-mysql

[fix] fixes to work with mysql