we should change the logic to grab the db and write it first this is the same issue with discord-ids.json. This needs to change too