added option to change device name, and remove new device from database if it fails to configure new device