Fixed: First move devicetypes with id >500 then insert new ones..
Fixed: Correcty generated database sql files.
Merge branch 'beta' of https://github.com/DomotiGa/DomotiGa into beta