Implements the ORM layer for Events.