use global varible for mysql