Make sure that 4xx responses are sent on error or if ENOSPC
graph: updated to work with sqlite3, Issue #369

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