removed unneeded command sending to PiHome from listDevices.php, only adding new device will need to talk to PiHome. Also make all the die() in dbmanager more meaningful to user