Added support for passing additional flags to mysql connection

https://github.com/cakephp/cakephp/issues/1932