update foreign key class to work with event data