ets/dets implementation and keys of indexes ?
The ets/dets implemtation used is the default one, set, which means that only a single object per key is possible. There should be some thinking about the implementation to use and/or the keys used for indexes.
E.g. the key for the global_mindex cannot be the publickey, if the ets/dets implementation is set, since a member can have multiple mindex entries ("create", "update"...)