How to search for previously submitted data?