First working version with DeviceProxy and Database