Removes some logging.
Moves factory db code to mongo. Refactors and cleans up code related to mongo and data name. Fix state bugs.
Fixes memory leak from mongo connections.