fixed some issues
test
Fixed the problem of sqllite is not closed