Upgrade fix for database event logging