moved JSON2CSV func to utils
added in data for repo.write function