email engine pulls data from template db