Reverted to mongodb 2.4 as 2.6 was throwing exceptions.