CRUD working code