put_item implementation