[TASK] Rename Node to NodeWriteModel
[TASK] Move database interaction to repository
[TASK] eventEmitQueue to events
[TASK] Rename NodePointer to NodeReference