Explicitly disconnect sqlite connection when disconnecting store

Also explicitly call disconnect in the tear-down of the sqlite tests.

This was causing problems with windows because it couldn't delete the database file during teardown of the tests.