query saver for reporting