mongodb and sendgrid app to handle various request emailed to a server