fixing mongo connection?

Trying to get content to write to mongo correctly.
changing some things