async function getEvents(serverId) {
  const response = await fetch('/api/events/query?serverId=' + serverId);
  const responseJson = await response.json();
  const entries = responseJson.entries;
  entries.forEach((entry) => {
    entry.events = entry.events.map((event) => {
      return Blockly.Events.fromJson(event, Blockly.getMainWorkspace());
    });
  });
  if (response.status === 200) {
    return entries;
  } else {
    throw 'Failed to query database.';
  }
}
Query the database for entries since the given server id.
@param {number} serverId serverId for the lower bound of the query.
@returns {<!Array.<!Entry>>} Entries since the given serverId.
@throws Will throw an error if the response status code is not 200.
@public