anchor.diff:  %%%===================================================================
   %%% API
   %%%===================================================================
  -
  +%CREATE EXTENSION hstore;
   %% Create new table named Table
   -spec new(Table::binary()) -> ok | {error, Error::binary()}.
   new(Table) when is_binary(Table) ->
       {{create, _}, _} =
  +        dikdik_db:simple_query(<<"CREATE EXTENSION IF NOT EXISTS hstore">>),
  +    {{create, _}, _} =
           dikdik_db:simple_query(<<"CREATE TABLE ", Table/binary, " (id varchar(256) PRIMARY KEY, data hstore)">>),
       {{create, _}, _} =
  -        dikdik_db:simple_query(<<"CREATE INDEX gin_idx ON ", Table/binary, " USING GIN(data)">>),
  +        dikdik_db:simple_query(<<"CREATE INDEX ", Table/binary, "gin_idx ON ", Table/binary, " USING GIN(data)">>),
       {{create, _}, _} =
  -        dikdik_db:simple_query(<<"CREATE INDEX h_idx ON ", Table/binary, " USING BTREE(data)">>).
  +        dikdik_db:simple_query(<<"CREATE INDEX ", Table/binary, "h_idx ON ", Table/binary, " USING BTREE(data)">>).
   
   %% Return all documents in Table
   -spec all(Table::binary()) -> [jsx:json_text()].
  
positive.code:   when is_binary(Table),
         is_binary(Doc) ->
      Values = to_insert_vals(Doc),
      {{insert, _, _}, _} = 
          dikdik_db:simple_query(<<"INSERT INTO ", Table/binary," (id, data) VALUES (uuid_generate_v4(), '",Values/binary,"')">>).
  
  -spec insert(Table::binary(), Id::binary(), Doc::jsx:json_text()) -> ok | {error, Error::binary()}.
  
negative.code:        is_binary(Id) ->
      case dikdik_db:extended_query(<<"SELECT %% hstore(data) FROM ", Table/binary,
                                      " WHERE id=$1">>, [Id]) of
          {{select, _Rows}, [{{array, Results}}]} ->
              jsx:encode(array_to_erl_json(Results));
          {{select, 0}, []} ->
              {error, no_doc}
      end.
  
  %% Create new document with Name, assumes Name does not currently exist
  -spec insert(Table::binary(), Doc::jsx:json_text()) -> ok | {error, Error::binary()}.
  