SR template changes

Changes made for underscore templates to receive data and sr query