made SmartAction smart, i.e. enable/disable it automatically according to database connection status.