adding extra settings stuff, adding support for adding a totally new device to the devices table