setting up the database for email templates