improved the mechanism to write event data to Asura DB.

The new method updates only for the newly obtanined data.