deal the device id only include in equipment sql table