small fix for multiple macros
use global sql_debug option
update $rcmail_config -> $config
up min version requirement