graph: updated to work with sqlite3, issue #369

the original node-sqlite plugin is deprecated and doesn't build.
resolves issue #369