database adpation and actions for events