added a check before executing SQL to associate an attribute type to an attribute category

- if attribute type was previously attached, SQL error was thrown