Set createdAt field automatically and add updatedAt field

This should be added to other collections too