Added a histogram utility function and some db code; checked custom import of pymongo packages.