Added callback when MongoDB connection established
Connection retry count made configurable