not totally quite sure what you are trying to achieve here.
you want to keep track of
participants
events
devices
and you want to keep track of what devices are given to what participants at what events.
am i correct so far?
then you want to be able to retrieve data based on the device...