returns last inserted id on item-append