How to update information from a table