Implemented logic to update records for all users.
Removed test code.