Avoid crash on start due to no database file open.

Signed-off-by: Tod Fitch <Tod@FitchDesign.com>