A trident state implementation for mongodb