add update type.
add query for user and item.