setting up query to submit changes to sale