resource CRUD finally working