Add and update scripts to query plugins