Fix intendation causing handle leak (spotted on PyPy 2.0b under Win32)
Use system temp for SQLite files
Use system temp for SQLite index files