update model for file input data, add retrieve data api