-Fixed device loading from sqlite database / json correction