update_dates task now works on 'updated' field, plus some refactoring