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.