A girls' trip to the pub helps to inspire Sophie's brilliant new sitcom idea while repairing her friendship with Marj.