async def get_events(database):
    """Get events."""
    events_query = 'select id, name, year from events order by year, name'
    events = await database.fetch_all(events_query)
    return [dict(e) for e in events]