Fixed sqlite3 related to multiple threads.
Merge branch 'develop'