It wouldn't hurt to also put SQLite into a Web Worker.