export mongodb collection works