A slug
is a part of the URL when you are accessing a resource.
http://localhost/cars/audi-a6/
could maps to
// 0 or 1 record expected
select * from car_table where brand='audi' and model='a6';
http://www.bbc.co.uk/news/world-africa-24506006
could maps to
// world-africa => connect to physical database "africa_news"
// and then
select * from posts where post_id='24506006' # suppose 24506006 is unique within a physical DB.