Add wrapper for database since later, we will have another database for path-based. Note that the common features such as cache, preimage,... are in the wrapper interface.
Move nodeset to trienode/node
Adjust tests: add scheme to tests for later testing on path-based
References:
Changes: