Feature: allow downloading CSV of a query by using an API key

This feature requires migration to the schema:

```sql
alter table queries add column "api_key" varchar(40);
```

And then you need to "touch" each query, in order to set its api_key.