Added mongodb and dynamic routes for persistence