fix saving device info in deviceDao