Do not enable sql elector if failover is disabled
Enabling SQL elector overrides failover enabled setting causing a panic due to database connection pool not being set up. This commmit uses the static node configuration implemented in local elector if failover is disabled.
Closes #2677 (closed)