added very basic mongo support.