Fail on invalid -dbn

Added failure if -dbn references an invalid database name