Queries to produce data plus ftp upload