Adds basic mongodb connection functionality