How to keep the UI responsive during long-taking sqlite queries?