Move dev. query functions from device module to new devquery module