Adding support for mongo and base for text compiler