Some win adaptations

Update to find the sqlite database file even on win.