Added special update() provided by Ray.

This allows one to update a record iff some additional criteria are met.