added basic code to update rows.