This method should be inside the MysqlStats class.