Added powa_getstatdata_query