updated the mongoose config for demo