fix request retry updating sql command