adjust for save various arrays on csv, json and mongodb