changed controllers dir to routes and cleaned up index and config files to be more dynamic.
added mongoose module for mongodb