Moved data storage logic to EventsActivity.