Changed hashmaps to BasicDBObjects.

Changed the making of the productAgent so it actually works.