update sql, images