Fix typo in checkDeviceTableExist
Use a proper db save location

Ref #4