anchor.diff:  							UserQuery = [],
   							UserDef = false;
   						UserId ->
  -							UserQuery = "\"user_id\":\"" ++ UserId ++ "\"",
  +							UserQuery = "\"user_id\":\"" ++ string:to_lower(UserId) ++ "\"",
   							UserDef = true
   					end,
   					case UserDef of
  
positive.code:                 undefined ->
                          FilteredJson = filter_json(Json, From, Size);
                  UserId ->
                          ResQuery = "\"user_id\":" ++ UserId,
                          FilteredJson = filter_json(Json, ResQuery, From, Size)
          end,
          case erlastic_search:search_json(#erls_params{},?INDEX, "stream", FilteredJson) of % Maybe wanna take more
  
negative.code: delete_resource(ReqData, State) ->
  	case {proplists:get_value('user', wrq:path_info(ReqData)),proplists:get_value('stream', wrq:path_info(ReqData))} of
  		{UserId,undefined} ->
  			case users:delete_streams_with_user_id(string:to_lower(UserId)) of
  				{error, {Code, Body}} -> 
  					ErrorString = api_help:generate_error(Body, Code),
  					{{halt, Code}, wrq:set_resp_body(ErrorString, ReqData), State};
  				{ok} ->
  					{true,wrq:set_resp_body("{\"message\":\"All streams with user_id:" ++string:to_lower(UserId)++" are now deleted\"}",ReqData),State}
  			end;
  		{_,Id} ->
  			case delete_data_points_with_stream_id(Id) of 
  