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

You can just use `warnings.warn("Failed to execute query {0}: {1}".format(query, e))`