dynamically set date of last data

When we process output, save the last date to the database, so that the
web interface does not get data for dates that do not exist, refs #3