Basic MongoDB retrieval procedure based on condition.