public static boolean addNewDrug(NewDrugPage newDrug){
		Drug newd = new Drug();
		String quantity = newDrug.getdQuantity().getText();
		int quant = Integer.parseInt(quantity);
		String cont = newDrug.getdControlled().getText();
		String t= "true";
		boolean controlledt=false;	
		controlledt=cont.equals(t);
		
		newd.setDrugName(newDrug.getdName().getText());
		newd.setDescription(newDrug.getdGeneral().getText());
		newd.setQuantity(quant);
		newd.setControlFlag(controlledt);
		newd.setSideEffect(newDrug.getdSide().getText());
		newd.setInterACtion("?");
		
		if(DatabaseProcess.insert(newd)){
			Gui.setCurrentDrug(newd);
			return true;
		}
		return false;}