Updated some queries to raw mongo.