public function addTemplate(MailTemplate $templateToAdd)
 {
     $database = Database::getInstance();
     if (!$database->isConnected()) {
         return false;
     }
     $name = $database->escapeString($templateToAdd->getName());
     $subject = $database->escapeString($templateToAdd->getSubject());
     $body = $database->escapeString($templateToAdd->getBody());
     $senderName = $database->escapeString($templateToAdd->getSenderName());
     $senderEmail = $database->escapeString($templateToAdd->getSenderEmail());
     $modifier = $database->escapeString($templateToAdd->getModifier());
     if (!$database->insertData('mailTemplate', 'name, subject, body, senderName, senderEmail, modifier', "'{$name}', '{$subject}', '{$body}', '{$senderName}', '{$senderEmail}', {$modifier}")) {
         return false;
     }
     return true;
 }