clean out old mysql query