public static boolean[] getReadOnly(boolean[] a){
		boolean[] ret = new boolean[QueryNames.size()];
		int i;
		String tmp;
		for(i = QueryNames.size() - 1; i >= 0; i--){
			tmp = QueryNames.get(i);
			if(tmp.equalsIgnoreCase("UPDATE") || tmp.equalsIgnoreCase("INSERT") || tmp.equalsIgnoreCase("DELETE"))
				ret[i] = false;
			else if(tmp.equalsIgnoreCase("SELECT"))
				ret[i] = true;
			else{
				ret[i] = false;
				System.err.println("Not supported query command: " + tmp);
			}
		}
		return ret;
	}