Make lib/save.js actually save data