public void readDataBase() {
		try {
			//Class.forName("com.mysql.jdbc.Driver");
	        java.sql.Driver d = (java.sql.Driver)Class.forName("solid.jdbc.SolidDriver").newInstance();


			String connectSQL = "jdbc:solid://localhost:2315/dba/dba";

			
			connect1 = DriverManager.getConnection(connectSQL);
			connect2 = DriverManager.getConnection(connectSQL);

			fillDatabase(connect1);

			String countSql = "SELECT C_NO FROM users WHERE id = ? LIMIT 1";
			countStatement1 = connect1.prepareStatement(countSql);
			countStatement2 = connect2.prepareStatement(countSql);

		} catch (Exception e) {
			e.printStackTrace();
		}
		WritableWorkbook workbook = null;
		WritableSheet[] sheets = new WritableSheet[4];
		
		String[] isolations = new String[1];
		isolations[0] = "REPEATABLE READ";
		//isolations[1] = "READ COMMITTED";
		//isolations[2] = "READ UNCOMMITTED";
		//isolations[3] = "SERIALIZABLE";
		isolations[0] = "SERIALIZABLE";
		
		try {
			SimpleDateFormat sdfDate = new SimpleDateFormat("yyyyMMdd_HHmmss");//dd/MM/yyyy
			Date now = new Date();
			String strDate = sdfDate.format(now);
			workbook = Workbook.createWorkbook(new File(strDate+"_"+user_count+".xls"));
			
			for(int i=0; i<isolations.length; i++) {
				sheets[i] = workbook.createSheet(isolations[i], 0);
				sheets[i].addCell(new Label(0, 0, "Conflicts (%)")); 
				sheets[i].addCell(new Label(1, 0, "Optimistic locking")); 
				sheets[i].addCell(new Label(2, 0, "Pessimistic locking"));
			}
		} catch (IOException | WriteException e) {
			e.printStackTrace();
		}

		int i=1;
		try {
			for(int isolation=0; isolation<isolations.length; isolation++) {
				String sql = "SET TRANSACTION ISOLATION LEVEL "+isolations[isolation];
  
				//connect1.createStatement().executeUpdate(sql);
				//connect2.createStatement().executeUpdate(sql);
				for(int conflicts=0; conflicts<=100; conflicts+=10){
				


					sheets[isolation].addCell(new Number(0, i, conflicts));
					
					String conflict_list = this.getRandomIDs(conflicts);
					System.out.println("Conflicts:" + conflict_list);
					long time = 0;
					int iters = 1;
					for(int iter=1; iter<=iters; iter++){
						connect1.setAutoCommit(true);
						connect2.setAutoCommit(true);
						connect1.createStatement().executeUpdate("ALTER TABLE users SET OPTIMISTIC");
						time += this.testLocking(conflict_list);
					}
					sheets[isolation].addCell(new Number(1, i, time));

					
					time = 0;
					for(int iter=1; iter<=iters; iter++){
						connect1.setAutoCommit(true);
						connect2.setAutoCommit(true);
						connect1.createStatement().executeUpdate("ALTER TABLE users SET PESSIMISTIC");
						time += this.testLocking(conflict_list);
					}
					sheets[isolation].addCell(new Number(2, i, time));
	
					i++;
					System.out.println("Ready with "+conflicts);
				}
			}

			workbook.write();
			workbook.close();
		} catch (WriteException | IOException | SQLException e1) {
			e1.printStackTrace();
		}
	}