[transfer-engine] Better attemp at fixing the QSqlDatabase leak

Idle ponderance: couldn't TransferModel just have a QSqlDatabase member, and do away with the static altogether?