WIP
Use JSON schema to validate
Specifically validate licenses
Export data in batches of 1000
Fix license schema
Clean up crud and refactor