fixed last_event_time
added db.* initial