Updated SQL statements
Merge remote-tracking branch 'origin/master' into Mainliner