Mary Margaret hires Mr. Gold as her attorney after Emma is forced to arrest her for the murder of David's wife.