Added some initial mongodb support