Fix errors when initializing Mongo

Still some issue to do the proper first test.