set db config to primary