anchor.diff:              end;
           Defined when is_list(Defined) ->
               {Query,Params} = build_update_query(Record),
  -            Res = pgsql:equery(Conn, Query, Params),
  +            Res = epgsql:equery(Conn, Query, Params),
               case Res of
                   {ok, _}         -> {ok, Record};
                   {error, Reason} -> {error, Reason}
  
positive.code: 
  find(Conn, Id) when is_list(Id) ->
      {Type, TableName, IdColumn, TableId} = boss_sql_lib:infer_type_from_id(Id),
      Res = pgsql:equery(Conn, ["SELECT * FROM ", TableName, " WHERE ", IdColumn, " = $1"], [TableId]),
      case Res of
          {ok, _Columns, []} ->
              undefined;
  
negative.code: 
  delete(Conn, Id) when is_list(Id) ->
      {_, TableName, IdColumn, TableId} = boss_sql_lib:infer_type_from_id(Id),
      Res = epgsql:equery(Conn, ["DELETE FROM ", TableName, " WHERE ", IdColumn, " = $1"], [TableId]),
      case Res of
          {ok, _Count} ->
              epgsql:equery(Conn, "DELETE FROM counters WHERE name = $1", [Id]),
              ok;
          {error, Reason} -> {error, Reason}
      end.
  