init mongo and database