anchor.diff:  get_torrent_meta_by_name(Name) ->
   	C = sql_conns:request_connection(),
   	case pgsql:equery(C, "select (name, infohash, length, timestamp) from torrents where name = $1", [Name]) of
  -		{ok, _, [{E}]} -> 
  +		{ok, _, [{E} | _]} -> 
   			{Name, Id, Length, Date} = E,
   			Result = #torrent_meta{name = Name, id = Id, length = Length, date = Date};
  -		{error, _} -> 
  +		_ -> 
   			Result = not_found
   	end,
   	sql_conns:release_connection(C),
  
positive.code: get_torrent_binary(Name) ->
  	C = sql_conns:request_connection(),
  	case pgsql:equery(C, "select (data) from torrents where name = $1", [Name]) of
  		{ok, _, [{E}]} -> 
  			Result = {ok, E};
  		{error, _} -> 
  			Result = not_found
  	end,
  	sql_conns:release_connection(C),
  
negative.code: torrent_name_by_id_t(Id) ->
  	C = sql_conns:request_connection(),
  	case pgsql:equery(C, "select (name) from torrents where infohash = $1", [Id]) of
  		{ok, _, [{Name} | _]} -> 
  			Result = {ok,Name};
  		_ -> 
  			Result = not_found
  	end,
  	sql_conns:release_connection(C),
  