fix loop mysql when get new PIC