fixed a bug in mysqlconnector and created statistics class