Added EmailTemplate mongo db support