added batch insertion and print MongoDB