modified code to handle the new db. Routes populates now.