added parseint to mongo insert