Added mongodb support
Work in progress