public void persistTransaction(Transaction transaction, int index, int size) {
		String sqlStatement;
		
		if(index == 0){
			System.out.println("Connecting for the first transaction");
			dao.connect();
		}
		/*else if(index == (size-1)){
			System.out.println("index: " + index + "vs. size-1: " + (size-1));
			System.out.println("Last Transaction Inserted");
			dao.disconnect();
		}else{
		*/
		
		sqlStatement = generateInsertStmt(transaction);
		if(dao.getErrorLogs().getErrorMsgs().size() == 0){
		dao.executeUpdate(sqlStatement);
		//dao.executeResultSet(sqlStatement);
		}
		if(index == (size-1)){
			//if(dao.getErrorLogs().getErrorMsgs().size() == 0){
			dao.disconnect();
		//}
		}
		
		
	}