Rewriting core functionality
Reimplemented CRUD, retract and nested ops not working