Add error counter to MysqlDataStore