coding for inserting data

making progress for inserting data to mongodb