added an error handling.
updated a test.
changed error level of the error which a database format is invalid.
added an error handling and a debug output.
added a test pattern to confirm that rebuilding of the database of a header file works.
fixed a bug that rebuilding of a database of a header file fails.