Fixed a bug for the last mail of each db (it was ignored ...) + redefined "today"