Backed out changeset f264d1cbf036

find_by_name does a bit more than simple find_by.
Simpler query.
Remove unused UserCount module.

--HG--
extra : amend_source : d2cd2dae742672131f658e8e2046fa71a7e53d5a
Saner queries.
'fix' handling of postgresql enum type.
Less caching, simpler query.

Hopefully doesn't increase too much load.

--HG--
extra : amend_source : 5e1d9489179c8957d8c6ab2b1435beff83790a45
Rails edition of inequality where.