Add membership_type field

Also fix a problem when there are no members in flashmob.