Following riots in the capital Male in August 2004 , the president and his government pledged to embark upon democratic reforms including a more representative political system and expanded political freedoms .