[DBTablesTest] Place test events in ascending order of time.

Normally events are saved in order of the time.
[DBTablesMonitoring] Add a new method: getTimeOfLastEvent().

Getting monitoring data from OpenStack's ceilometer is done
by each trigger. So we needs the last event information by
triggers.