Implemented more information when cannot open database.