move add identity logic out of Member.has_identity()
move SQL out of DummyMember constructor
create init_community() for community init logic