Updated the alert mail template and made DB alerts configurable