Added support for variable mysql usage