Git ignores .settings directory

So it doesn't try to sync my Eclipse IDE settings
Fixed test to work on Windows

Close the database before removing it, the removal mechanism is more
Pythonesque, and renamed "file" to "fname" to avoid overwriting Python
reserved words.