Changed logic in how AbstractDatabaseModel changes updated_at 

Changed so that changing it and reverting it are conditional on the same logic.  Reverting was slightly off, and it should only revert if it was changed.