Added functionality to edit item data within the table and save to DB