Mysql 5.6 support

It's a work in progress pull request