updated add/insert/delete from the adapter