Updates to MySQLDatabase

Changed the way of transactional methods are made.