Well you will need to create a database query, get the record values and then run a repeat with database update within it.