edit db config for hg