Add MessageDecoder/Encoder for mongodb config