Remove trash files.
Switch from pickle to mongodb.
Clean up some code.