Changed datagrid to use model's insert/update/delete methods to facilitate change tracaking