Added support for passing additional flags to mysql connection