Modified the preview function to open database and do full init also otherwise so that Mongo is available during the conversion.