Using SQL query (crudely) to fetch data, rather than pickle file. Agency data is unfortunately now broken, and this has revealed agency filtering has always been broken