update controllers and mongo db routing.