add slug field to the raw SQL queries