Change message specifications

"id" was source of misunderstanding: "userId" and "itemId" are now used.
Adapt functions to the new specification