remove volatile keyword. SQLite's threadsafety is a lot less clear than I thought.