Check for existence of db name before checking db structure.

Without the db name check, we return True (i.e. db is present) any
time that we invoke the state and accept all of the default keyword
arguments, even if no such db exists.
Merge pull request #5640 from sbworth/develop

Check for existence of db name before checking db structure.