Persist file extensions in the database