Update various MySQL queries