Fix bug in deviceDB

Fix a bug which would cause the program to crash upon checking if a device was present in the database.
Fix bug in deviceDB

Fix a bug which would cause the program to crash upon checking if a device was present in the database.