Generate static JSON and CSV extracts from a SQL database