Get routes from database