MN 0015920 DeviceDAO.list() refactoring

removed redundant db query.
Merge remote-tracking branch 'origin/master'