public static Reminder findByApptAndUser(long apptId, long userId) throws SQLException {

		PreparedStatement statement = connect.prepareStatement(
				"select * from Reminder where appointmentId = ? and userId = ?");
		statement.setLong(1, apptId);
		statement.setLong(2, userId);
		statement.executeQuery();
		ResultSet resultSet = statement.getResultSet();
		if(!resultSet.next()) return null;
		Reminder rtn = new Reminder();
		rtn.id = resultSet.getLong("id");
		rtn.reminderAhead = resultSet.getLong("reminderAhead");
		return rtn;
	}