Refactor MySql support

I added some tests and refactored the code to handle multi-line scripts as well as scripts that contain a DELIMITER statement.