Set path to /db/data/ on connect if version not found using retries

This function needs a idiomatic name (`_connect` looks like Python idiom) and a doc comment.