public static void addLinks(int fromID, String fromURL, List<WebURL> links) {
		String urlStr = null;
		try{
			conn = DBConnection.getConnectionInstance();
			
			String sql = "insert into link(fromid, fromurl, toid, tourl) values(?, ?, ?, ?)";
			PreparedStatement preparedStatement = conn.prepareStatement(sql);
			
			preparedStatement.setInt(1, fromID);
			preparedStatement.setString(2, fromURL);
			
			for(WebURL url:links) {
				urlStr = url.getURL();
				
				if(FILTERS.matcher(urlStr).matches() || (urlStr.indexOf("http://news.seu.edu.cn") == -1) ) 
					continue;
				
				preparedStatement.setInt(3, 0);
				preparedStatement.setString(4, url.getURL());	
				
				preparedStatement.executeUpdate();
			}
			
		}
		catch(Exception e) {
			System.out.println("add link failure !");
			System.out.println("url : " + urlStr);
			e.printStackTrace();
		}
	}