update route display to new db structure

- add classes to loop through object
- refactor classes for maps