Democracy necessary for stability, security: Pervaiz