mongo connection post working, bug fixes