Add missing else when checking for linkgraph.db