anchor.diff:              end
       end.
   
  -is_active_user(Username) ->
  -    ActiveUsers = ets:lookup(?DB, active_users),
  +is_active_user(Username, InstanceName) ->
  +    DB = db_name(InstanceName),
  +    ActiveUsers = ets:lookup(DB, active_users),
       case ActiveUsers of
           [] ->
               false;
  
positive.code: 
  handle_change_song(#{<<"id">>     := Id,
                       <<"title">>  := Title,
                       <<"listid">> := ListId}, _, Headers) ->
      case is_logged_in(Headers) of
          false ->
              render_not_logged_in();
          _Username ->
  
negative.code: 
  -include("common.hrl").
  
  init(InstanceName) ->
      %% If several instances of musiklistan are running, only start ETS once.
      %% The purpose of having several instances is only for development anyway,
      %% serving HTTP for development and HTTPS for production.
      DB = db_name(InstanceName),
      io:format("Starting ets..."),
      ets:new(DB, [public, set, named_table]),
      ets:delete_all_objects(DB),
      ets:insert(DB, {active_users, []}),
      io:format("Starting mnesia..."),
      NodeList = [node()],
      mnesia:create_schema(NodeList),
  