Read a file and save the content to the database