Don't update created_by or timestamp if the doc already has it.
Add update_with_log to update log ids of documents