add db index to slug