First hadoop call for creating documents from database