fixed update sql script