Mongo-ify some shit
update threshold