avoid failure in case shell is started with --nodb option.

prevents the "ReferenceError: db is not defined"