revisionstore: clean up redundant DB connection code in RevisionStore