public String toString(){
		String temp = "";
		String and = "";
		if (callArray[Call.SRC] != null){
			temp += "src LIKE '" + callArray[Call.SRC] + "'";
			and = " AND ";
		}
		if (callArray[Call.DST] != null){
			temp += and + "dst LIKE '" + callArray[Call.DST] + "'";
			and = " AND ";
		
		}
		if (!callArray[Call.DURATION].equals("0")){
			temp += and + "duration >= '" + callArray[Call.DST] + "'";
			and = " AND ";
		}
		if (this.callsPeriod != null){
			temp += and + this.callsPeriod;
            and = " AND ";
		}

        if (callArray[Call.LASTAPP] != null){
            temp += and + "lastapp = '" + callArray[Call.LASTAPP] + "'";
        }

        switch (onlyNightCalls) {
            case 1:{
                return "(" + temp + ")" + " AND ( ((calldate REGEXP \"19:..:..$\") OR (calldate REGEXP \"2[0-4]:..:..$\")) OR (calldate REGEXP \"0[0-8]:..:..$\") )";
            }
            default: return temp;
        }
		

	}