Use sqlite3 gem, wrap inserts in transaction

On master, `time rake docset:reindex` -- real    5m27.159s

On this branch, `time rake docset:reindex` -- real    0m1.661s