The government continues to face the daunting task of reforming a petroleum-based economy , whose revenues have been squandered through corruption and mismanagement , and institutionalizing democracy .