change device_id type int -> binary