If we want to remove some database connection from the list of database connections.
we need to use QSqlDatabase::removeDatabase(),however it's a static function and the way it work is a little wired.
// WRONG WAY
QSqlDatabase db = QSqlDatabase::database("sales");
QSqlQuery query(&...