replace the community_summary view by a table

Fixes #2693 without reverting back to using slow queries.
Merge pull request #2701 from gratipay/fix-members-count

Replace the community_summary view by a table