modified moddels for write and delete operations. Pending other CRUD functions