Fix # web users graph

fixes http://manage.dimagi.com/default.asp?144599#805971

reimplements a broken query
I don't really mind the functionality, but semantically I think naming the method `domains` reads strangely. If the method name is the same as the name you want to give to the single argument for it, you should probably rethink the method name.