Fix slugname not working with multi word names. Also create the slug for...

... names in queries