REFACTOR scope procesing in query request at mongoBackend