Philippines must preserve democracy: outgoing president