Improve update pull request query

commitIdFrom and commitIdTo columns update by one query.