Connecting to MongoDB and doing some simple queries