init mongo, repository