Adds function to update an existing contact