add event management to persistent datastore