$this->db->query("INSERT INTO `" . DB_PREFIX . "ebay_template` SET `name` = '".$this->db->escape($data['name'])."', `html` = '".$this->db->escape($data['html'])."'"); return $this->db->getLastId();