Reinitialize connection

SQLite objects can't be used cross threads.
pet pylint: