adding mysql config and adjust stats collection