Did a whole bunch of stuff long ago

Restructured, added mongo db connection etc etc