modify mysql code