rsGenQuery now checks the collection name