Example code of updating table