Store MIME type in the database for each file.