Try to detect an update when adding new objects.
Set updatedAt if creation is actually an update.
Make sure createdAt is maintained on update.
Tests for updates.