java/db: Small changes around settings handling in the device entity
go: db changes around settings handling + added hostname in connection-related events.