Custom training data importer using mongo db

Please any one help me on getting training data from my mongodb database using custom importers