Establishes connection to mongo and supports read/writes