If you need to read from another database, use switch_db not switch_collection.