final ServletContext application = getServletConfig().getServletContext();
final Datastore ds = MongoConnectionHelper.ds;
//Get History Values
final MapReduceHistoryMinMax datesHisotry = ds.find(MapReduceHistoryMinMax.class).get();
if (datesHisotry != null) {
application.setAttribute("history", datesHisotry);
}
final List<Date> datesResult = ds.getDB().getCollection("Meteolog").distinct("time");