So you want to do similiar in your Edit Script.
if isnull(filetime('d:\datadump.qvd')) then
ODBC CONNECT TO DataRepository;
store datadump into datadump.qvd;
load * from datadump.qvd (qvd);
Now of course change your connection setting to what is appropriate to you and of course the filenames and sql select statement. They are just there for an example.
Hope this helps.