Query deposit for database to spreadsheet data export