Fixed mysql commands so that it would expand variables