php to pull route from db