index.js Emit ready event, when db connected

Emit ready event. I work with gridFs, and i need MongoDb object(MongoJS.client)