Mongodb connection/setup with eventing