If you want to filter data from spreadsheet with SQL here's how to do it: https://coderwall.com/p/pluhsg
Thanks. You approach really makes sense...
Once again, it depends where you'll use this approach. For me it was a matter of time to get used to it.
I'd use getenv('VARNAME').