Added an extra byte before the ASN1 encoding of database entries for versioning purposes. Also, error handling mechnisms are also added for handling incompatible version numbers. Some extra catch statements are removed to allow the orginal exception to bubble up to the debug logger.
Current version number is 0x01.Any entries that are not of this version will fail decoding since there is only one valid version right now.
NOTE: Any database files created before this revision will be incompatible since they are missing the version byte. Please re-import/add your data.
Fix for issue 573