corrected mongo connection stuff
logging
argh!