public Date getLatestUpdate(String feature_of_interest_id, String phenomenon_id){
		String query = "SELECT max(time_stamp) AS date FROM observation WHERE feature_of_interest_id='"+feature_of_interest_id+"' AND phenomenon_id='"+phenomenon_id+"'";
		//if there's not yet an entry take the current time and substract 12 hours
		Date result = utils.substractHours(utils.getCurrentTimeAsDate(), 12);
		try {
			Statement stmt = con.createStatement();
			ResultSet rs = stmt.executeQuery(query);
			if (rs.next()  && rs.getObject("date")!=null){
				result = rs.getTimestamp("date");
				//logger.info("myDate: "+result.toString());
			}
		} catch (SQLException e) {
			logger.warn("Invalid query: "+ query, e);
			e.printStackTrace();
		}
		return result;
	}