two queries related to email templates