Added update and delete-rows functions