more refactors to make metadata manager class happy on MySQL JDBC driver v5.0.8