Adds support for the JDBC MySql adapter

This applies the necessary patches to specific MySql JDBC adapter classes.
It's been tested with both sqlite3 and mysql jdbc AR adapters (but not with Postgres).