could've probably fixed it with ORDER BY but lazy
IMPORTANT!!! Make sure to run utils/infodict_mysql2file.py before upgrading the database.