Change to ensure that the code can handle a null connections data model.
Change to ensure that the code can handle a null nodes data model.
Now creating a connection data model when creating a connection via dragging.
Refactored connection create to seperate fns.