Behind the scenes of Edinburgh-made hit Department Q