test openclose for sqlite3