Managed to connect to mongodb