Moved to use hosted mongodb instance.
Class structure needs big cleanup.
Fixed duplicate key bug in user_trails collection.