removed the mySQL queryDevice