Don't print to stdout in reindex command

This makes the tests quieter and allows calling scripts to control
whether they want output to be printed or not.
Close mongoose connection after reindexing

Because this command can be called in the context of a request we don't
want to end up with lots of open database connections, so make sure we
close the connection after using it.