Simplifies server code by getting past and upcoming events in one api call