Updating dev to server mongodb
fixed errors