fix issues with sql patch number in previous pull request