got logic for stored queries working and set up logic to do tests