Point 1 is news to me, I'd never have found that. Does better-sqlite3 do that for you?