When opening a code or closing it, index of the current node is
immediately added/cleared (if needed) from all DBs.
This makes materialization easier: adding a value in builtin mode (for
example) can be directly added into the running mode (if needed) w/o
having to worry about the indexes maintainance.