public void updatePatientDetails(String name,String history,String medicineArray[],String quantityArray[],double sugarLevel,double pressureLevel) throws SQLException{
      //       
        String prescription ="";
        for(int i=0;i<10;i++){
            if(medicineArray[i]!=null && quantityArray[i]!=null )
            prescription=prescription+medicineArray[i]+" ~ "+quantityArray[i]+"\n";
            else break;
        }
        System.out.println(prescription);
        
        dataAccessor.updatePatientStatistics(name, history, prescription, sugarLevel, pressureLevel);
    }