added some mongo initialization