Fix SQLite not liking threads