send device id from sql table