changed getRoutes, saved images to different table