adding device Query