Update GraphDatabase.js

Changed .link() method to use source & target .uid rather than complete objects
Changed .ingest() method to get source & target .uid via the _getHash private method and use them as params when calling the .link() method.