fix sqlite not close problem