squash mysql variables and warnings