Small fix to devices
NOW device file is fixed up

Added code to connect device to correct table