Add unique index for transaction collection