update flash cards php