Extract mongoose configuration