Campina Grande ( Portuguese "Great Plain") is a Brazilian city in Paraiba . It is the second largest city in the state after Joao Pessoa .