add restrict_to() method to Device_Query