Avoid issues with duplicate assets (one with S/N, one with MAC) for the same device while updating
Correction
Added some minor checks
Corrections
Fixed problem with JS parameters when adding IP service from device page
Corrections in upgrade script regarding NOT NULL constraints