issues with latest sql patch name, removing few deprecated statement calls and other warnings