Any data that enters your system from outside a trust boundary should be treated as untrusted until proven otherwise. That includes form fields, API payloads, file uploads, headers, cookies, queue ...
discogs-xml2db is a python program for importing discogs data dumps into several databases. It exports to CSV as an intermediate step. It can then import these CSV files into MySQL, PostgreSQL, and ...