Fixed a serious bug causing updates to overwrite all records regardless of the where statement.