public ArrayList<String> getUrlList() {

		ArrayList<String> retVal = new ArrayList<String>();

		try {
			Random randomGenerator = new Random();

			StringBuilder sb = new StringBuilder();
			int randomInt;

			randomInt = randomGenerator.nextInt(1000);
			if (randomInt < 25) {
				/*
				 * Ponowna indeksacja
				 */
				sb.append("SELECT Url FROM urls WHERE LastVisitDate<'");

				Calendar calendar = Calendar.getInstance();
				calendar.add(Calendar.DATE, -7);
				Timestamp currentTimestamp = new java.sql.Timestamp(calendar
						.getTime().getTime());

				sb.append(currentTimestamp.toString());
				sb.append("' AND `Ignore`=0 ORDER BY ID__ ASC LIMIT ");
			} else {
				/*
				 * Indeksacja nowych
				 */
				sb.append("SELECT Url FROM urls WHERE LastVisitDate IS NULL AND `Ignore`=0 ORDER BY ID__ ASC LIMIT ");
			}
			randomInt = randomGenerator.nextInt(1000);
			sb.append(randomInt);
			sb.append(",1000");

			ResultSet rs = null;
			Statement statement;

			statement = this.con.createStatement();
			rs = statement.executeQuery(sb.toString());

			while (rs.next()) {
				retVal.add(rs.getString("Url"));
			}

			/*
			 * Shuffle
			 */
			Collections.shuffle(retVal);

		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}

		return retVal;
	}