Fix bug #9888 my checking for db_info table
Make test more robust and change the error message
Merge pull request #517 from pedrocr/fix-db-detection

Fix bug #9888 my checking for db_info table