Fix open and close DBSQLite