fix sqlite2 database can not run in different thread