Style cleanup of MongoDB code