Import tag_db from config.

Fixed
=====
* This fixes a bug that caused an internal error when deleting
  a model.
Added models/saveas command.

Fixed
=====
* The model/saveas command fixes a bug where uploaded files for a model
  were not copied.