Clean up tmp keys on startup
Return the promise from getItemsToInsert
Stringify the objects for the log function