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

oops