Add flatten: true parameter to every query

3ce63574cbc508fd6cdc9b69a8a36fd5037d1ded removed the query param but said it should have been added to the data_source.

This commit adds the query param to the data_source.