unified implementation of MysqlConnectionPool and C3P0ConnectionPool