Add submitData to edit/add records into database