Added preliminary mongodb support.