Add method to update existing entry