add getLastItemId function
add getLastItemId function
delete itemId and CategoryId serve