Add updateOrAdd method to the handler.

This method checks to see if the value already exists in the
db for the current day. If it does, it updates the value.
If it does not exists then it adds the value to the db.