Added code to update table with location data