Update GraphDatabase.js

Bad for..in loops are polluting the root scope... I'm sniffing them out.