added mysql optimization

added mysql optimization system
added some options to config.inc.php and changed some others
removed alerts from index.php
fixed an bug with config.lua icon on dashboard