removed unused stuff
refactoring mongo stuff (WIP)