[qtcontacts-sqlite] Close database on destruction.

Ensure that we close the databases to avoid leaking fds.
Merge pull request #92 from chriadam/fixfd

[qtcontacts-sqlite] Close database on destruction.