SecureKey interview question

How to prevent lost updates on db?