Updated for new mongodb and chart module

and added some forgotten files