Added DBManagedEvent macros