getNextVersion should also work without auditlog
Let postUpdate and postInsert call same function

Apparently we need a postUpdate and postInsert
using postSave function directly gave some troubles with new records.
Wrap version updates in a transaction with a FOR UPDATE lock