Improvements to the MySQL transport [WIP]