Added the base for event delegation with database actions.