added updating and deleting fact