anchor.diff:                  (_, _) ->
                       ok
                   end
  -            )
  +            ),
  +            couch_db:close(Db)
           end
       ),
  -    couch_db:close(RepDb),
  -    {Pid, couch_db:name(RepDb)}.
  +    {Pid, RepDbName}.
   
   
   has_valid_rep_id({Change}) ->
  
positive.code: 
  changes_feed_loop() ->
      {ok, RepDb} = ensure_rep_db_exists(),
      Server = self(),
      Pid = spawn_link(
          fun() ->
              ChangesFeedFun = couch_changes:handle_changes(
                  #changes_args{
                      include_docs = true,
  
negative.code:                     db_open_options = [sys_db]
                  },
                  {json_req, null},
                  Db
              ),
              ChangesFeedFun(
                  fun({change, Change, _}, _) ->
  