Add the model and function to the SQL calls. Special case when changing a device type, update it's icon.
Add the model and function to the SQL calls. Special case when changing a device type, update it's icon.

Opmantek/open-audit,Opmantek/open-audit,Opmantek/open-audit,Opmantek/open-audit,Opmantek/open-audit