update

Refactured node and database accessor
Still working on Node