Error while pushing data into mongoDB