save routes to db