Fxing bug for reinstall snack with database problem and creating debug for snmp trap