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 type name for uniqueness. Takes the template type name as first argument and an optional template type id as second argument.
If the template type id is given, this template type won't be considered when checking for uniqueness (useful for updates). Returns boolean true if template type name is unique.
Updates template type. Takes the template type id as first argument, a field=>value array with the new template type data as second argument. Returns amount of affected rows.