Added crude EventService to get events from database + two small fixes