Switched over stuff to use the mongodb.