Add email subject processing, add MongoDB