Bug Fixes in KDE-PIM
Clear cached queries before closing database connection
This works around a crash in QPSQL driver in Qt 4, where destroying QSqlQuery
after QSqlDatabase connection has been closed apparently leads to a crash.
We now clear all cached QSqlQueries belonging to the same thread as the
DataStore being destroyed before it closes the connection.