started refactoring of node collection db calls

in progress