the query history should be shared between collections with the same name in different databases