added saving and retrieving routes info from db