Fixed error message and number in event trigger
Added DatabaseMailer email service that writes messages to a database table instead of sending them