addition of foreign keys in event.sql