New db write system - define existing items and batch insert