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

Not a massive problem, but I'd recommend calling this "TransferDatabase" or something. Anything in the "Q" prefix is fair game for use as naming within Qt.