change method in deviceDao and add method in device insurance