getting primary keys for get_event_data