- removed setGraph and changed module exports to remove global _db object