// for use by the UI to get events for a single day
  public ArrayList<Event> getEventsForDay(int y, int d, int m) throws SQLException {

    db.createTable(eventTable);

    int year = y;
    int day = d;
    int month = m;
    Date target = new Date(year, month, day);

    ArrayList<Event> result = new ArrayList<Event>(db.getEventsForDay(eventTable, target));
    return result;
  }
  public Calendar() throws ClassNotFoundException, SQLException {

    db = new CalendarDB();

    db.createTable(eventTable);
  }