Tweaked Route class and also started with db wrapper