@Override
	public boolean isExistUrl(String url) {

		Statement stmt;
		Statement stmt2;
		ResultSet rs;
		ResultSet rsHistory;

		try {
			stmt = con.createStatement();
			stmt2 = con.createStatement();
			String query = "SELECT * FROM " + TABLE_NAME + " WHERE url = '"
					+ url + "'";
			rs = stmt.executeQuery(query);

			String query4History = "SELECT * FROM " + TABLE_HISTORY_NAME
					+ " WHERE url = '" + url + "'";
			rsHistory = stmt2.executeQuery(query4History);


			while (rs.next() || rsHistory.next()) {
				return true;
			}

			rs.close();
			rsHistory.close();
			stmt.close();

		} catch (SQLException e) {
			e.printStackTrace();
		}
		return false;
	}