added an error handling.
updated a test.
changed error level of the error which a database format is invalid.