change orm events for updateCalculatedProperties

Move the calls to updateCalculatedProperties from the preInsert and
preUpdate to postInsert and postUpdate orm events.