After some playing around I'm OK with the 'db' part of your reply but not the 'device' part. I understand, using your example, that I can do things like
to view some variables, but if I want to be able to examine other device data available whilst the device is actually connected to my PC, what extra do I need to do?
e.g within a plugin, if I wanted to know what drive the device was connected as I would use
root_path = self.gui.device_manager.connected_device._main_prefix
what extras would I need to import to be able to access this data via the commandline?