Remove superflous MySQL commands