Update log table with ID
Update saveItems function
- initialize $duplicate
- cast title to string
- cast creator to string
Query prep