Added code to edit item and update in DB.