Add functionality to update local database in background with Web Worker.