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

Where is this used?