formatter: Addition of `mime_type` column to `Format` table

IMHO You can define this function locally in `do_upgrade` (or even just keep the code inside the loop).