Updates to AppDb library and appdb.py binary

There were issues with the AppDb library that caused components
to appear to be exported/enabled when they were not actually
exported/enabled.  That is been updated.