Mysql additions

this could be a starting point for #4465 and support of collate and character set in database names. Reading the code I saw some very not robust queries (or should I say insecure).

So I started a mysql integration test also, That should certainly be reviewed, I'm not sure it's the right way to do that. But I definitevely want to have tests with database names like f\`oo""jhlk (legit).

Seems also on my travis test I should add something to load python-mysql in the virtualenv, or something like that.