Configure main database connection to replica set.