fixed delete and added update : todo/add index-insert