Changed uniquness constraint on MailTemplate.name to a composite constraint with name,locale