using getAllOldUrls in sqlutil and export