Fix Query Mapper does not handled correctly query with AND and OR

Refactor QueryMapper to handle mongodb query operators on any place in query and reduce complexity little bit.