How to create and maintain a data file from form inputs?