Start instance of base class, load configuration and establish database connection. Please don't call the constructor direcly, use the singleton pattern instead.
Tests given template set name for uniqueness. Takes the template set name as first argument and an optional template set id as second argument.
If the template set id is given, this template set won't be considered when checking for uniqueness (useful for updates). Returns boolean true if template set name is unique.
Updates template set. Takes the template set id as first argument, a field=>value array with the new template set data as second argument. Returns amount of affected rows.