Move script search/get/update/delete code to the Script class