remove pic and update sql