make sql execute with a few updates, fix to mysql magic quotes