Working code to insert items with ids. #1