Fixed a 500 for modules.json. Turns out Bjorn changed a variable name and forgot to import db.