copy session per query for mongodb access