Builds and links properly to mongo client.