Fix # web users graph

fixes http://manage.dimagi.com/default.asp?144599#805971

reimplements a broken query
I prefer the first format you listed out of the two presented and the one in the diff.  Although I'm inclined to keep as is just because the rest of the file follows that convention