Updated gopost script to work better with mongo.