Fix for issue #184: superclass mismatch for class MysqlAdapter

I change the way of determining the parent of MysqlAdapter, so that superclass mismatch stops occurring. 

See more in issue #184.