public void updateImmunization(Immunization.ImmunizationType type, int petID) throws SQLException{
		Statement state = DBConnection.OpenConnection();
		String commandstring;
		if(type == Immunization.ImmunizationType.Rabies){
			Calendar newCalendar = Calendar.getInstance();
			newCalendar.add(Calendar.YEAR, 3);
			Date StartDate = new Date();
			Date EndDate = newCalendar.getTime();
			java.sql.Date StartDateSQL = new java.sql.Date(StartDate.getTime());
			java.sql.Date EndDateSQL = new java.sql.Date(EndDate.getTime());
			commandstring = String.format("UPDATE Immunizations SET Start_Date = '%s', End_Date = '%s' WHERE Pet_ID = %d AND Immunization = 'Rabies'", StartDateSQL, EndDateSQL, petID);
		}
		else if(type == Immunization.ImmunizationType.Distemper){
			Calendar newCalendar = Calendar.getInstance();
			newCalendar.add(Calendar.YEAR, 3);
			Date StartDate = new Date();
			Date EndDate = newCalendar.getTime();
			java.sql.Date StartDateSQL = new java.sql.Date(StartDate.getTime());
			java.sql.Date EndDateSQL = new java.sql.Date(EndDate.getTime());
			commandstring = String.format("UPDATE Immunizations SET Start_Date = '%s', End_Date = '%s' WHERE Pet_ID = %d AND Immunization = 'Distemper'", StartDateSQL, EndDateSQL, petID);
		}
		else{
			Calendar newCalendar = Calendar.getInstance();
			newCalendar.add(Calendar.YEAR, 1);
			Date StartDate = new Date();
			Date EndDate = newCalendar.getTime();
			java.sql.Date StartDateSQL = new java.sql.Date(StartDate.getTime());
			java.sql.Date EndDateSQL = new java.sql.Date(EndDate.getTime());
			commandstring = String.format("UPDATE Immunizations SET Start_Date = '%s', End_Date = '%s' WHERE Pet_ID = %d AND Immunization = 'Bordatella'", StartDateSQL, EndDateSQL, petID);
		}
		state.execute(commandstring);
		state.close();
	}