updater improvements and sql fix

added check for writable autoconf.php
fixed defect sql "groupleaders"
added default parameter fo write_config_file