public void updateForecast() {
		Date date = new Date();
		long maxTimeNoUpdate = Long.parseLong(config.getWeather_expiration_time());

		long timeNow = date.getTime()/1000L;
		long timeLastForecast = 0;

		try {
			crs = qb.selectFrom("forecast").all().executeQuery();
			if(crs.next()){
				timeLastForecast = crs.getDate("date").getTime()/1000L;
			}
		} catch(SQLException e) {
			e.printStackTrace();
		} finally {
			try {
				crs.close();
			} catch (SQLException e) {
				e.printStackTrace();
			}
		}

		if(timeNow-timeLastForecast > maxTimeNoUpdate){
			System.out.println("UPDATING FORECAST");
			saveForecast();
		} else {
			System.out.println("FORECAST IS UP TO DATE");
		}
	}