anchor.diff:  	//rs1 = products row
   	//rs2 = user/state column
   	//rs3 = table cells
  -	rs1 = stmt1.executeQuery(sql1); //1 = pid, 2 = total
  -	rs2 = stmt2.executeQuery(sql2); //1 = uid OR state, 2 = total
  -	rs3 = stmt3.executeQuery(sql3);	//1 = uid OR state, 2 = pid, 3 = total
  -	
  +	//rs1 = stmt1.executeQuery(sql1); //1 = pid, 2 = total
  +	//rs2 = stmt2.executeQuery(sql2); //1 = uid OR state, 2 = total
  +	//rs3 = stmt3.executeQuery(sql3);	//1 = uid OR state, 2 = pid, 3 = total
  +	
  +	long q1s, q1e, q2s, q2e, q3s, q3e;
  +	double elapsed1, elapsed2, elapsed3;
  +	
  +	q1s = System.nanoTime();
  +	rs1=stmt1.executeQuery(sql1);
  +	q1e = System.nanoTime();
  +	
  +	q2s = System.nanoTime();
  +	rs2=stmt2.executeQuery(sql2);
  +	q2e = System.nanoTime();
  +	
  +	q3s = System.nanoTime();
  +	rs3=stmt3.executeQuery(sql3);
  +	q3e = System.nanoTime();
  +	
  +	//state not id, many users in one state
  +//    out.println("product #:"+p_list.size()+"<br>state #:"+s_list.size()+"<p>");
  +	int i=0,j=0;	
  +	float amount=0;
   	rs1.beforeFirst();
   	rs2.beforeFirst();
   	rs3.beforeFirst();
  
positive.code: 			{
  				//category - off, state - on
  				sql2 = "SELECT * FROM users_total AS ut WHERE ut.uid IN (SELECT u.id FROM users AS u WHERE u.state = '" + state + "') ORDER BY ut.total LIMIT 20";
  				sql3 = "SELECT * FROM users_products_total AS upt WHERE upt.uid IN (SELECT u.id FROM users u WHERE u.state = '" + state + "') AND upt.pid IN (SELECT pt.pid FROM products_total AS pt ORDER BY pt.total LIMIT 10)";
  			}
  		}
  		else
  
negative.code: 			{
  				//category - on, state - off
  				sql2 = "SELECT * FROM users_categories_total ORDER BY total DESC LIMIT 20";
  				sql3 = "SELECT * FROM users_products_total AS upt WHERE upt.pid IN (SELECT p.id FROM products AS p JOIN products_total pt ON (pt.pid = p.id) WHERE p.cid = " + category + " ORDER BY  pt.total DESC LIMIT 10) ORDER BY upt.total DESC LIMIT 10";
  			}
  			else
  			{
  