Update deviceService.php

echo the MySQL Error msg while throwing as this throw msg does not display in ubuntu