title: Building a Graph Editor - How to create a data driven graph
body: <p>I'm developing a graph-editor that uses drag and drop to build hierarchical graphs (containing nodes and links), each node in the graph should be linked to a table in our database (SQL Server), I did a lot of research about libraries based on javascript or/and JSON specifications to draw nodes and links, there are a lot of great examples to follow. But I have no idea about the way I can link a graph to a database (SQL Server, Oracle, MySQL...). I thought about this architecture :</p>
  
  <p><img src="https://i.stack.imgur.com/LHZHm.png" alt="Technical Architecture"></p>
  
  <p>I have looked at the <a href="http://d3js.org/" rel="nofollow noreferrer">D3</a> library , It creates Data driven charts but I think It only uses flat files, and not relational databases. 
  First can you please tell me if my architecture is well thought out? And secondly can give me some ideas about the way I can link my graphs to the DBMS.</p>
  
  <p>Thanks a lot.</p>