anchor.diff:  
   
   sync_insert_new_user(UserInfo) ->
  -    UserIdList = maps:get(user_ids,UserInfo,[]),
       UserId = maps:get(uid, UserInfo),
  -    case add_new_user_entries(UserIdList,UserId,UserInfo) of
  +    case add_new_user_entry(UserInfo) of
           ok -> 
               {ok, UserId};
           {error, already_exists} ->
  
positive.code:         Other -> Other
      end.
  
  %% delete_user_mappings(IssSubList) ->
  %%     tts_data:user_delete_mappings(IssSubList).
  
  
negative.code:     end.
  
  
  %% functions with data access
  
  add_new_user_entry(UserInfo) ->
      IssSubList = maps:get(user_ids,UserInfo,[]),
      UserId = maps:get(uid, UserInfo),
      Mappings = [ {IssSub, UserId} || IssSub <- IssSubList ],
      Timestamp = calendar:datetime_to_gregorian_seconds(calendar:local_time()),
      ok = tts_data:user_insert_data(UserId,UserInfo,Timestamp),
      ok = tts_data:user_insert_mappings(Mappings). 
  
  