graphdb: initialize the database semi-idempotently on every connection, not just new installs.

I think this will resolve #9428, and it simplifies our code. @rhatdan can you verify?