Since
you may use the aggregation framework on all the collections from one database with an $out into the other database.