Execution plans for SQL AOAG updated.

* Functions updated
* Some steps moved from one EP to another

Change-Id: Ica5130741426547337b26dcfbb1d05578fd5987d