Update class.MySQL.php

Set attributes to private
Added commit and rollback methods;
Added charset management (experimental);
Removed useless setting.
Forces commit before closing.