Fixes #346. Multiple databases support in management commands.

I don't think ContentType should take a database argument. All the ContentType models are loaded from the database on app load and cached.