How to exploit MongoDB queries