Add mongo and http handler