Adding an update/replace function to the Table file