Removes some redundant variables relating to SQL. Updates the config to ...

...reflect the change.

SQL errors are only displayed if SQL is enabled.