Jdgarrett rebuild graph

Hey JD, looks like rebuild-graph tests weren't actually deleting the graph db on disk and hence they succeeded after trying to do so with a false positive.
This patch merges onto the latest master and makes sure the graph db is truncated, but now the tests don't pass and I'm not sure why. Would you take a look at it?