Make migration work again.
Refactor archive command to be flasky.
Refactor solr command.