work on bulk indexing and mongodb integration