private int getMostRecentIDWellnessOrLab(int petID, String visit) throws SQLException{
		int ID = 0;
		Statement state = DBConnection.OpenConnection();
		String commandstring = String.format("SELECT MAX(ID) AS ID FROM Appointments WHERE Pet_ID = %d AND Service_Name = '%s'", petID, visit);
		ResultSet rs = state.executeQuery(commandstring);
		while(rs.next()){
			ID = Integer.parseInt(rs.getString("ID"));
		}
		state.close();
		rs.close();
		return ID;
	}