anchor.diff:  delete(Type, Id) ->
   	mnesia:delete({Type, Id}).
   
  +search(Type, Params) ->
  +	Matchspec = make_matchspec(Type, Params),
  +	Recs = mnesia:select(Type, Matchspec),
  +	{ok, Recs}.
  +		
   %% @hidden
   transaction(Fun) ->
   	case mnesia:transaction(Fun) of
  
positive.code: 	{atomic, ok} = mnesia:create_table(?COUNTERS_TABLE, []),
  	create_tables(Tail).
  
  
negative.code: -define(EXPECTED_TABLES, [schema, ?COUNTERS_TABLE]).
  
  -export([check_setup/0]).
  -export([transaction/1, save/1, get_by_id/2, delete/2, search/2]).
  
  %% @doc Ensure the mnesia schema and tables exist. Assumes a schema already
  %% exists.
  