How to get the data from previous submissions?