Issue #9: mongodb connection all set up, added tests