Create GraphDatabase.js

Needs lots more comments... lots more...