Fixed mongodb interface.
Fixed codestyle.