public void updateMaxes()
	{
		try{
		String maxTweetQuery = "select max(retweetCount) from tweets";
		String maxUserQuery = "select max(accountAge),max(favorites),max(friends),max(statusCount),max(followers) from users";
		Statement maxTweetStmt = con.createStatement();
		Statement maxUserStmt = con.createStatement();
		ResultSet tweetMaxes = maxTweetStmt.executeQuery(maxTweetQuery);
		ResultSet userMaxes = maxUserStmt.executeQuery(maxUserQuery);
		double maxrt=1.0,maxnt=10.0,maxage=1.0,maxfavs=1.0,maxfrnds=1.0,maxsc=1.0,maxfol=1.0;
		if(tweetMaxes.first())
		{
			maxrt = tweetMaxes.getDouble("max(retweetCount)");
			if (maxrt==0) maxrt=1;
		}
		if(userMaxes.first())
		{
			maxfavs = userMaxes.getDouble("max(favorites)");
			if (maxfavs==0) maxfavs = 1;
			maxfrnds = userMaxes.getDouble("max(friends)");
			if (maxfrnds==0) maxfrnds=1;
			maxsc = userMaxes.getDouble("max(statusCount)");
			if (maxsc == 0) maxsc=1;
			maxage = userMaxes.getDouble("max(accountAge)");
			if (maxage==0) maxage=1;
			maxfol = userMaxes.getDouble("max(followers)");
			if (maxfol==0) maxfol=1;
		}
		maxTweetStmt.close();
		maxUserStmt.close();
		maxes[0] = maxrt;
		maxes[1] = 1.0;
		maxes[2] = maxnt;
		maxes[3] = 8.0;
		maxes[4] = maxage;
		maxes[5] = maxfavs;
		maxes[6] = maxfrnds;
		maxes[7] = 1.0;
		maxes[8] = maxsc;
		maxes[9] = maxfol;
		maxes[10] = 1.0;
		}catch (Exception e){
			System.out.println("uupdate max error");
			e.printStackTrace();
		}
	}