worker: fix table name issue;
material type: fix avoiding insert type without name; add delete function;