wrstat-deamon removed unnecessary joins